
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Mtons UI</title>

<!-- Bootstrap core CSS -->
<link href="../../dist/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom styles for this template -->
<link href="../../dist/css/dashboard.css" rel="stylesheet">

<script src="../../depends/jquery.min.js"></script>
</head>

<body>
	<div class="container-fluid">

		<div class="row">
			<h2 class="sub-header">Extend</h2>

			<p>extend 方法可以对一个对象或数组进行扩展，或多个 object 对象合并，相同的属性/数组下标，前一个会被后一个覆盖。</p>
			
			<div>
				<h4>示例：</h4>
				<pre>
var o = {a: 1, b: 2};
var q = {a: 11, b: 22, c: 33};
mtons.extend(o, q);

// output: {"a":11,"b":22,"c":33}
				</pre>
			</div>
		</div>
	</div>
</body>
</html>
